package com.springboot.cloud.common.core.exception;

import com.springboot.cloud.common.core.entity.vo.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 * 全局异常处理器
 */
@RestControllerAdvice
public class GlobalExceptionHandler extends BaseException {

    public Result UserIsNotFoundException(String mesg) {
        return Result.error(mesg);
    }
}
